<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;

class DepartmentFushu extends Model
{
    use HasDateTimeFormatter;
    protected $fillable = ['dwdm', 'fs_dwmc','filepath'];
    protected $table = 'department_fushu';

    public static function getFushuByDwdm($dwdm)
    {
        return departmentFushu::query()->where('dwdm', $dwdm)->get();
    }
    
}